const workModel = require('../models/taskModel')

const getTaskByUserId = async (userId) => {
  return await workModel.getTaskByUserId(userId)
}

const getTaskModel = async () => {
  return await workModel.getTaskModel()
}

const getNoteByUserId = async (userId) => {
  return await workModel.getNoteByUserId(userId)
}

const deleteTaskById = async (id) => {
  return await workModel.deleteTaskById(id)
}

const delTaskModel = async (id) => {
  return await workModel.delTaskModel(id)
}

const addNewTask = async (params) => {
  return await workModel.addNewTask(params)
}

const addNewNote = async (params) => {
  return await workModel.addNewNote(params)
}

const addNewTaskModel = async (params) => {
  return await workModel.addNewTaskModel(params)
}

const handOutTask = async (params) => {
  return await workModel.handOutTask(params)
}

const updateTask = async (params) => {
  return await workModel.updateTask(params)
}

module.exports = {
  getTaskByUserId,
  getTaskModel,
  handOutTask,
  getNoteByUserId,
  updateTask,
  deleteTaskById,
  addNewNote,
  addNewTask,
  addNewTaskModel,
  delTaskModel
}
